﻿package net.wangit.view.page;

import net.wangit.view.unit.UnitComponent;

public class PageHelper {

	public PageHelper() {
	}

	public static String getUrl(UnitComponent uc) {
		return getUrl(uc.getDomain(), uc.getId());
	}

	public static String getUrl(String domain, String unitId) {
		return (new StringBuilder("/")).append(domain).append("/").append(
				unitId).append(".do").toString();
	}
}
